package com.itqian.seller.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * @author shishuqian
 * date 2022/3/21
 * time 20:56
 **/
@Data
public class StoreInfoForm {

    @NotBlank(message = "店铺名不能为空")
    @Size(max = 32,message = "店铺名长度最大为32")
    private String storeName;

    @NotBlank(message = "店铺手机不能为空")
    @Size(max = 64,message = "店铺手机号长度最大为64")
    private String storePhone;

    @NotBlank(message = "店铺地址不能为空")
    @Size(max = 128,message = "店铺地址长度最大为128")
    private String storeAddress;


    @Size(max = 128,message = "店铺营业时间长度最大为128")
    private String storeOpenTime;

    @Size(max = 300,message = "店铺公告长度最大为300")
    private String storeNotice;

    @Size(max = 128,message = "店铺类型描述最大长度为128")
    private String storeType;

    @NotNull(message = "起送费用不能为空")
    private BigDecimal minPrice;

    @NotNull(message = "配送费不能为空")
    private BigDecimal postPrice;

}
